﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="mroles.aspx.cs" Inherits="admin_mroles" MasterPageFile="~/admin/MasterPage2.master" %>


<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>


<asp:Content ID="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">

    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>

<table width="1100px" bgcolor="White">
    <!-- Encabezado -->
    <tr bgcolor="#FA7E02" class="letracuadroscolores">
        <td>Manage Roles</td>
    </tr>
    <!-- Cuerpo -->
    <tr>
        <td>
            <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" 
                Width="1100px">

<!-- ************************************** PANEL DE PERFILES **************************************************** -->
    <asp:TabPanel runat="server" HeaderText="TabPanel1" ID="TabPanel1">

    <HeaderTemplate>
        Roles
        </HeaderTemplate>            
    
        
     <ContentTemplate>

 

     
                <table width="80%" align="center">
                    
                    <tr>
                        

                        <td align="center">
                    
                            

                            

                    
                            <asp:GridView ID="gv_roles" runat="server" BackColor="White" EmptyDataText="No Roles are added" 
                            HorizontalAlign="Center" onpageindexchanging="gv_roles_PageIndexChanging" 
                                onrowdatabound="gv_roles_RowDataBound" Width="500px">
                                

                            <HeaderStyle BackColor="#9AC9F8" CssClass="letraAzul" />
                                

                            <PagerSettings FirstPageImageUrl="~/img/rewindend33.png" LastPageImageUrl="~/img/forwardend.png" Mode="NextPreviousFirstLast" PreviousPageImageUrl="~/img/rewind33.png" />
                                
                            <Columns>
                                
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        

                                        <asp:HyperLink ID="HyperLink1"  runat="server" NavigateUrl='<%#"~/admin/role.aspx?id=" + Eval("per_id") %>' Text="Edit"></asp:HyperLink>
                                        

                                        
                                    </ItemTemplate>
                                    

                                    <ItemStyle ForeColor="Black"  />
                                    
                                </asp:TemplateField>
                                
                            </Columns>
                                
                            </asp:GridView>
                            


                        </td>
                
                        
                
                    </tr>  
                    <tr>
                        
                        <td align="center" class="letraAzul14">
                            
                            <asp:Label ID="Label1" runat="server" CssClass="letraNegra13" Font-Bold="True"></asp:Label>
                            
                        </td>
                        
                    </tr>  
                    <tr>
                        

                        <td>
                            

                            <table align="center" class="style1">
                                

                                <tr>
                                    

                                    <td bgcolor="#9AC9F8" class="style1" colspan="2" align="center">Add New Role</td>
                                    

                                </tr>
                                

                                <tr>
                                    

                                    <td valign="middle">
                                        

                                        <asp:TextBox ID="tb_role" runat="server" CssClass="txtForm" Width="180px"></asp:TextBox>
                                        
                                        <asp:LinkButton ID="lnk_add" runat="server" CssClass="button2_ok" ForeColor="White" onclick="lnk_add_Click"><span>Add New</span></asp:LinkButton>
                                        


                                        <br />
                                        

                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tb_role"
                                        CssClass="letraRojaValidacion" ErrorMessage="RequiredField"></asp:RequiredFieldValidator>
                                        
                                

                                    </td>
                                    

                                    <td>&nbsp;</td>
                                    

                                </tr>
                                

                            </table>
                            

                        </td>
                        

                    </tr>  
                </table>
           
           

    </ContentTemplate>
        
    </asp:TabPanel>

<!-- ******************************************* FIN PANEL PERFILES ***************************************************************** -->


<!-- ******************************************* PANEL OTROS PERFILES *************************************************************** -->

    <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">

        <HeaderTemplate>
            Profiles
        </HeaderTemplate>
        
        <ContentTemplate>
            

            <table width="80%" align="center">
                

                <tr>
                    

                    <td>
                        

                        <asp:GridView ID="gv_otrosPerfiles" runat="server" BackColor="White" CssClass="letraNegra13" EmptyDataText="No profiles are added" 
                            HorizontalAlign="Center" Width="500px" onrowdatabound="gv_otrosPerfiles_RowDataBound" onpageindexchanging="gv_otrosPerfiles_PageIndexChanging" >
                            

                            <AlternatingRowStyle BackColor="#E7F1FE" />
                            

                            <HeaderStyle BackColor="#9AC9F8" CssClass="letraAzul" />
                            

                            <PagerSettings FirstPageImageUrl="~/img/rewindend33.png" LastPageImageUrl="~/img/forwardend.png" Mode="NextPreviousFirstLast" PreviousPageImageUrl="~/img/rewind33.png" />
                            

                            <Columns>
                                

                                <asp:TemplateField>
                                    

                                    <ItemTemplate>
                                        

                                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%#"~/admin/role.aspx?id=" + Eval("per_id") %>' Text="Edit"></asp:HyperLink>
                                        

                                    </ItemTemplate>
                                    

                                    <ItemStyle ForeColor="Black"  />
                                    

                                </asp:TemplateField>
                                

                            </Columns>
                            

                        </asp:GridView>
                        

                    </td>

                </tr>
                

                <tr>
                    

                    <td align="center" class="letraAzul14">
                        
                        <asp:Label ID="Label2" runat="server" CssClass="letraNegra13" Font-Bold="True"></asp:Label>

                    </td>
                    

                </tr> 
 
            </table>
            

        </ContentTemplate>
    
        
    </asp:TabPanel>

<!-- ******************************************* FIN PANEL OTROS PERFILES *********************************************************** -->

            </asp:TabContainer>
        </td>
    </tr>
        <!-- Pie -->
    <tr>
        <td></td>
    </tr>
</table>

</asp:Content>



<asp:Content ID="Content2" runat="server" contentplaceholderid="head">
    <style type="text/css">
        .style1
        {
            width: 400px;
            border-collapse: collapse;
            border-left-style: solid;
            border-left-width: 1px;
            border-right: 1px solid #C0C0C0;
            border-top-style: solid;
            border-top-width: 1px;
            border-bottom: 1px solid #C0C0C0;
        }
         
        .style7
        {
            color: Black;
            font-family: Arial Narrow;
            font-size: 13px;
            text-decoration: none;
            font-weight: 700;
            width: 150px;
            vertical-align:top;
            text-align: left;
        }
    </style>
</asp:Content>




